package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_Payment", catalog="guid")
public class TcgPayment extends BaseEntity<TcgPayment> {

	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="PGuid", nameJava="pGuid", typeDataBase="varchar")
	private String pGuid;
	@YsField(nameDataBase="Iid", nameJava="iid", typeDataBase="int")
	private Integer iid;
	@YsField(nameDataBase="Nid", nameJava="nid", typeDataBase="varchar")
	private String nid;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="PBid", nameJava="pBid", typeDataBase="varchar")
	private String pBid;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="AUser", nameJava="aUser", typeDataBase="varchar")
	private String aUser;
	@YsField(nameDataBase="ADept", nameJava="aDept", typeDataBase="varchar")
	private String aDept;
	@YsField(nameDataBase="APosition", nameJava="aPosition", typeDataBase="varchar")
	private String aPosition;
	@YsField(nameDataBase="BUser", nameJava="bUser", typeDataBase="varchar")
	private String bUser;
	@YsField(nameDataBase="BDept", nameJava="bDept", typeDataBase="varchar")
	private String bDept;
	@YsField(nameDataBase="BPosition", nameJava="bPosition", typeDataBase="varchar")
	private String bPosition;
	@YsField(nameDataBase="GUser", nameJava="gUser", typeDataBase="varchar")
	private String gUser;
	@YsField(nameDataBase="GDept", nameJava="gDept", typeDataBase="varchar")
	private String gDept;
	@YsField(nameDataBase="GClient", nameJava="gClient", typeDataBase="varchar")
	private String gClient;
	@YsField(nameDataBase="GCName", nameJava="gCName", typeDataBase="varchar")
	private String gCName;
	@YsField(nameDataBase="VBz", nameJava="vBz", typeDataBase="varchar")
	private String vBz;
	@YsField(nameDataBase="VZdbz", nameJava="vZdbz", typeDataBase="varchar")
	private String vZdbz;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="bit")
	private Integer effectStock;
	@YsField(nameDataBase="Deleted", nameJava="deleted", typeDataBase="bit")
	private Integer deleted;
	@YsField(nameDataBase="ActiveFlow", nameJava="activeFlow", typeDataBase="varchar")
	private String activeFlow;
	@YsField(nameDataBase="ProcInstId", nameJava="procInstId", typeDataBase="varchar")
	private String procInstId;
	@YsField(nameDataBase="OrderID", nameJava="orderID", typeDataBase="varchar")
	private String orderID;
	@YsField(nameDataBase="Cost", nameJava="cost", typeDataBase="decimal")
	private BigDecimal cost;
	@YsField(nameDataBase="AliErrorMessages", nameJava="aliErrorMessages", typeDataBase="varchar")
	private String aliErrorMessages;
	@YsField(nameDataBase="AliResult", nameJava="aliResult", typeDataBase="varchar")
	private String aliResult;
	@YsField(nameDataBase="ServiceChargeAll", nameJava="serviceChargeAll", typeDataBase="decimal")
	private BigDecimal serviceChargeAll;
	@YsField(nameDataBase="SupplierID", nameJava="supplierID", typeDataBase="varchar")
	private String supplierID;
	@YsField(nameDataBase="SupplierName", nameJava="supplierName", typeDataBase="varchar")
	private String supplierName;
	@YsField(nameDataBase="IsPay", nameJava="isPay", typeDataBase="varchar")
	private String isPay;

	public String getGuid() {
		return guid;
	}
	public TcgPayment setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getPGuid() {
		return pGuid;
	}
	public TcgPayment setPGuid(String pGuid) {
		this.pGuid = pGuid;
		return this;
	}
	public Integer getIid() {
		return iid;
	}
	public TcgPayment setIid(Integer iid) {
		this.iid = iid;
		return this;
	}
	public String getNid() {
		return nid;
	}
	public TcgPayment setNid(String nid) {
		this.nid = nid;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPayment setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getPBid() {
		return pBid;
	}
	public TcgPayment setPBid(String pBid) {
		this.pBid = pBid;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TcgPayment setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getAUser() {
		return aUser;
	}
	public TcgPayment setAUser(String aUser) {
		this.aUser = aUser;
		return this;
	}
	public String getADept() {
		return aDept;
	}
	public TcgPayment setADept(String aDept) {
		this.aDept = aDept;
		return this;
	}
	public String getAPosition() {
		return aPosition;
	}
	public TcgPayment setAPosition(String aPosition) {
		this.aPosition = aPosition;
		return this;
	}
	public String getBUser() {
		return bUser;
	}
	public TcgPayment setBUser(String bUser) {
		this.bUser = bUser;
		return this;
	}
	public String getBDept() {
		return bDept;
	}
	public TcgPayment setBDept(String bDept) {
		this.bDept = bDept;
		return this;
	}
	public String getBPosition() {
		return bPosition;
	}
	public TcgPayment setBPosition(String bPosition) {
		this.bPosition = bPosition;
		return this;
	}
	public String getGUser() {
		return gUser;
	}
	public TcgPayment setGUser(String gUser) {
		this.gUser = gUser;
		return this;
	}
	public String getGDept() {
		return gDept;
	}
	public TcgPayment setGDept(String gDept) {
		this.gDept = gDept;
		return this;
	}
	public String getGClient() {
		return gClient;
	}
	public TcgPayment setGClient(String gClient) {
		this.gClient = gClient;
		return this;
	}
	public String getGCName() {
		return gCName;
	}
	public TcgPayment setGCName(String gCName) {
		this.gCName = gCName;
		return this;
	}
	public String getVBz() {
		return vBz;
	}
	public TcgPayment setVBz(String vBz) {
		this.vBz = vBz;
		return this;
	}
	public String getVZdbz() {
		return vZdbz;
	}
	public TcgPayment setVZdbz(String vZdbz) {
		this.vZdbz = vZdbz;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPayment setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPayment setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcgPayment setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public TcgPayment setDeleted(Integer deleted) {
		this.deleted = deleted;
		return this;
	}
	public String getActiveFlow() {
		return activeFlow;
	}
	public TcgPayment setActiveFlow(String activeFlow) {
		this.activeFlow = activeFlow;
		return this;
	}
	public String getProcInstId() {
		return procInstId;
	}
	public TcgPayment setProcInstId(String procInstId) {
		this.procInstId = procInstId;
		return this;
	}
	public String getOrderID() {
		return orderID;
	}
	public TcgPayment setOrderID(String orderID) {
		this.orderID = orderID;
		return this;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public TcgPayment setCost(BigDecimal cost) {
		this.cost = cost;
		return this;
	}
	public String getAliErrorMessages() {
		return aliErrorMessages;
	}
	public TcgPayment setAliErrorMessages(String aliErrorMessages) {
		this.aliErrorMessages = aliErrorMessages;
		return this;
	}
	public String getAliResult() {
		return aliResult;
	}
	public TcgPayment setAliResult(String aliResult) {
		this.aliResult = aliResult;
		return this;
	}
	public BigDecimal getServiceChargeAll() {
		return serviceChargeAll;
	}
	public TcgPayment setServiceChargeAll(BigDecimal serviceChargeAll) {
		this.serviceChargeAll = serviceChargeAll;
		return this;
	}
	public String getSupplierID() {
		return supplierID;
	}
	public TcgPayment setSupplierID(String supplierID) {
		this.supplierID = supplierID;
		return this;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public TcgPayment setSupplierName(String supplierName) {
		this.supplierName = supplierName;
		return this;
	}
	public String getIsPay() {
		return isPay;
	}
	public TcgPayment setIsPay(String isPay) {
		this.isPay = isPay;
		return this;
	}

	public static TcgPayment tcgPayment(
		String guid,
		String pGuid,
		Integer iid,
		String nid,
		String bid,
		String pBid,
		String cid,
		String aUser,
		String aDept,
		String aPosition,
		String bUser,
		String bDept,
		String bPosition,
		String gUser,
		String gDept,
		String gClient,
		String gCName,
		String vBz,
		String vZdbz,
		Date createTime,
		Date updateTime,
		Integer effectStock,
		Integer deleted,
		String activeFlow,
		String procInstId,
		String orderID,
		BigDecimal cost,
		String aliErrorMessages,
		String aliResult,
		BigDecimal serviceChargeAll,
		String supplierID,
		String supplierName,
		String isPay
			) {
		TcgPayment entity = new TcgPayment();
		entity.setGuid(guid);
		entity.setPGuid(pGuid);
		entity.setIid(iid);
		entity.setNid(nid);
		entity.setBid(bid);
		entity.setPBid(pBid);
		entity.setCid(cid);
		entity.setAUser(aUser);
		entity.setADept(aDept);
		entity.setAPosition(aPosition);
		entity.setBUser(bUser);
		entity.setBDept(bDept);
		entity.setBPosition(bPosition);
		entity.setGUser(gUser);
		entity.setGDept(gDept);
		entity.setGClient(gClient);
		entity.setGCName(gCName);
		entity.setVBz(vBz);
		entity.setVZdbz(vZdbz);
		entity.setCreateTime(createTime);
		entity.setUpdateTime(updateTime);
		entity.setEffectStock(effectStock);
		entity.setDeleted(deleted);
		entity.setActiveFlow(activeFlow);
		entity.setProcInstId(procInstId);
		entity.setOrderID(orderID);
		entity.setCost(cost);
		entity.setAliErrorMessages(aliErrorMessages);
		entity.setAliResult(aliResult);
		entity.setServiceChargeAll(serviceChargeAll);
		entity.setSupplierID(supplierID);
		entity.setSupplierName(supplierName);
		entity.setIsPay(isPay);
		return entity;
	}
}